from matplotlib import pyplot as plt
import numpy as np
import random

# Set x-axis and y-axis
x_list_01 = range(1, 31)
y_list_01 = [random.randrange(0, 30) for i in x_list_01]
y_list_02 = np.random.randint(0, 100, 30)
# Set the picture scale
plt.figure(figsize=(20, 15), dpi=80)
plt.scatter(x_list_01, y_list_01, label="Random")
plt.scatter(x_list_01, y_list_02, label="np.Random")
# plt.plot(x_list_01, y_list_01)
# Set x-axis format
x_ticks = ["Month 3 Day {}".format(i) for i in x_list_01]
plt.xticks(x_list_01[::3], x_ticks[::3], rotation=45)
# Set y-axis format
y_ticks = ["{} person".format(i) for i in range(0, 101)]
plt.yticks(range(0, 101), y_ticks)
# Set labels of axis
plt.xlabel("Date")
plt.ylabel("Number")
plt.legend(loc="upper left")
plt.show()
